﻿<UserControl x:Class="GermaneShanidze.Applications.Jokeri.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="http://www.codeplex.com/prism"
    xmlns:Theming="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.ExpressionLight"
    mc:Ignorable="d"
             >

    <UserControl.Resources>

    </UserControl.Resources>
    
    <Theming:ExpressionLightTheme>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top">
            <Image Source="./Resources/Graphics/Shell_background.png" Stretch="UniformToFill" />
            <Grid Grid.Row="0" RenderTransformOrigin="0.5,0.5" Margin="30,0,30,20" >
                <Grid.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Grid.RenderTransform>
                <Grid.RowDefinitions>
                    <RowDefinition Height="100"/>
                    <RowDefinition Height="220"/>
                    <RowDefinition x:Name="ActionRow" Height="220"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="350" />
                    <ColumnDefinition Width="350" />
                </Grid.ColumnDefinitions>

                <!-- logo -->
                <Canvas x:Name="Logo" Grid.ColumnSpan="2" Grid.Column="0" Grid.Row="0" RenderTransformOrigin="0.5,0.5">
                    <Canvas.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Canvas.RenderTransform>
                    <TextBlock Text="fb " TextWrapping="NoWrap" Foreground="#FFC4CFD6" FontSize="72" Opacity="0.85" Canvas.Left="0" Canvas.Top="5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="80" Width="135" TextAlignment="Left" FontWeight="Bold" />
                    <TextBlock Text="ჯოკერი" TextWrapping="NoWrap" Foreground="#FFC4CFD6" FontSize="72" Opacity="0.85" Height="80" TextAlignment="Left" FontWeight="Normal" Width="525" Canvas.Left="150" Canvas.Top="5"/>
                </Canvas>

                <!-- Chat -->
                <Grid x:Name="ContentGrid" Grid.Row="2" Grid.Column="1" Margin="10,10,10,10" RenderTransformOrigin="0.5,0.5">
                    <Grid.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Grid.RenderTransform>
                    
                    <ContentControl x:Name="LobbyChatContent" prism:RegionManager.RegionName="LobbyChatRegion"
                                    Opacity="0.75"
                                    VerticalAlignment="Stretch"
                                    HorizontalAlignment="Stretch" />
                </Grid>

                <!-- guests -->
                <Grid x:Name="SideGrid" Margin="10,10,10,10" Grid.Row="1" Grid.Column="0" Grid.RowSpan="2" RenderTransformOrigin="0.5,0.5" Height="Auto">
                    <Grid.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Grid.RenderTransform>
                    
                    <ContentControl x:Name="ApplicationContent" prism:RegionManager.RegionName="ApplicationContentRegion"
                        Style="{StaticResource ContentControlRegionStyle}"
                        VerticalAlignment="Stretch"
                        HorizontalContentAlignment="Stretch" />
                </Grid>

                <!-- Table -->
                <Grid x:Name="DetailsGrid" Grid.Row="1" Grid.Column="1" Margin="10,10,10,10" RenderTransformOrigin="0.5,0.5">
                    <Grid.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Grid.RenderTransform>

                    <ContentControl x:Name="FacebookStatusContent" prism:RegionManager.RegionName="FacebookStatusRegion"
                        Style="{StaticResource ContentControlRegionStyle}"
                        VerticalAlignment="Stretch"
                        HorizontalContentAlignment="Stretch" />

                </Grid>
            </Grid>
        </Grid>
    </Theming:ExpressionLightTheme>
</UserControl>
